﻿@model IEnumerable<Leikjavefurinn.Context.GameStatus>

@{
    ViewBag.Title = "Leikir í gangi";
}

<h2>Leikir í gangi</h2>

<button class="btn" type="button">@Html.ActionLink("Stofna leik", "Create", "TTT")</button>

<table class="table">
    <tr>
        <th>Leikjanafn
        </th>
        <th>Virkur
        </th>
        <th>Biðstöðu
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.GameName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsActive)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IsWaiting)
            </td>
        </tr>
    }

</table>
